Skip to content

[Cloud Asset Inventory] Support GCP Cloud Connectors#17305

Merged
amirbenun merged 4 commits into
elastic:mainfrom
amirbenun:gcp-cloud-connectors_cai
Feb 11, 2026
Merged

[Cloud Asset Inventory] Support GCP Cloud Connectors#17305
amirbenun merged 4 commits into
elastic:mainfrom
amirbenun:gcp-cloud-connectors_cai

Conversation

@amirbenun
Copy link
Copy Markdown
Contributor

Summary

Adds GCP Cloud Connectors support to the Cloud Asset Inventory package, aligned with PR #17185 (Cloud Security Posture). This allows cloudbeat to use Cloud Connectors for GCP asset discovery with service account impersonation.

@amirbenun amirbenun requested a review from a team as a code owner February 9, 2026 10:49
Copilot AI review requested due to automatic review settings February 9, 2026 10:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GCP Cloud Connectors configuration to the cloud_asset_inventory integration package so cloudbeat can perform GCP asset discovery via Cloud Connectors with service account impersonation (aligned with cloud_security_posture work in #17185).

Changes:

  • Bump package version to 1.5.0-preview02 and add a changelog entry.
  • Add a dedicated GCP Cloud Connectors CloudShell URL variable to the package manifest.
  • Add Cloud Connectors-required GCP vars (service account email, audience, connector ID) and render the new credential fields into the GCP agent stream template.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/cloud_asset_inventory/manifest.yml Bumps version and adds hidden CloudShell URL var for provisioning Cloud Connectors SA.
packages/cloud_asset_inventory/data_stream/asset_inventory/manifest.yml Adds Cloud Connectors required-vars groups for GCP and introduces new vars for Fleet policy configuration.
packages/cloud_asset_inventory/data_stream/asset_inventory/agent/stream/gcp.yml.hbs Emits new GCP Cloud Connectors credential fields into the generated agent configuration.
packages/cloud_asset_inventory/changelog.yml Records the enhancement in the package changelog for 1.5.0-preview02.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

credentials_file_path: {{gcp.credentials.file}}
{{/if}}
{{#if gcp.credentials.json}}
credentials_json: '{{gcp.credentials.json}}'
Copy link
Copy Markdown
Contributor

@Omolola-Akinleye Omolola-Akinleye Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add Elastic Cloud Connector ID field apart of gcp.yml.hbs

value: organization-account
- name: gcp.credentials.type
value: cloud_connectors
- name: gcp.organization_id
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding gcp.organzation_id field would add this text input as a required field on GCP Cloud Connector form. Do we expect users to enter in the organization id as part of UX? I created a separate pr here to remove gcp.organization_id field as required var.

@amirbenun amirbenun force-pushed the gcp-cloud-connectors_cai branch from 1ff2722 to e8429a6 Compare February 11, 2026 15:46
@Omolola-Akinleye Omolola-Akinleye self-requested a review February 11, 2026 15:52
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @amirbenun

@amirbenun amirbenun merged commit ea62e17 into elastic:main Feb 11, 2026
9 checks passed
@amirbenun amirbenun deleted the gcp-cloud-connectors_cai branch February 11, 2026 16:23
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Package cloud_asset_inventory - 1.5.0-preview02 containing this change is available at https://epr.elastic.co/package/cloud_asset_inventory/1.5.0-preview02/

jakubgalecki0 pushed a commit to jakubgalecki0/integrations that referenced this pull request Feb 19, 2026
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Package cloud_asset_inventory - 1.5.0 containing this change is available at https://epr.elastic.co/package/cloud_asset_inventory/1.5.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants